package fr.red5.components
{
 import mx.containers.Panel;
 import flash.media.Camera;
    import flash.media.Video;
    import mx.core.UIComponent;   

public class WebcamPanel extends Panel
 {
  public var video:Video
  
  public function WebcamPanel(){
   super();
   insertWebcamVideo();
  }
  public function insertWebcamVideo():void{
   var videoHolder:UIComponent = new UIComponent();
   var camera:Camera = Camera.getCamera();
   camera.setMode(400, 300,50);
   video  = new Video(400, 300);
         video.attachCamera(camera);
         videoHolder.addChild(video);
         addChild(videoHolder);
         videoHolder.y =10;
  }
 }
}